<!DOCTYPE HTML>

<html lang="pt-br"  
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:pe="http://primefaces.org/ui/extensions">
	
<ui:composition template="/WEB-INF/template/VendaTemplate.xhtml">
<ui:define name="corpo">
<style type="text/css">
	.div-tela 
	{
		max-width: auto;
		max-height: auto;
		padding: 10px 10px 10px;
	    margin: 0 auto 20px;
	    background-color: #fff;
	    border: 1px solid #e5e5e5;
	    -webkit-border-radius: 5px;
	    	-moz-border-radius: 5px;
	        	border-radius: 5px;
	    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
	    	-moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
	        	box-shadow: 0 1px 2px rgba(0,0,0,.05);
	}
	.colunaEsquerda
	{  
	    text-align: left;
	    width: 20%;  
	}  
	.colunaDireita
	{  
	    text-align: left;
	    width: 80%    
	}
	</style>
<div class="div-tela">
	
	<p:panel id="pnlCurvaABC" header="Configuração Curva">	
		
		<p:commandButton id="btnGravar" 
							value="Gravar" 
							styleClass="ui-priority-primary"
							update=":frmVenda:pnlCurvaABC"
							actionListener="#{curvaAbcManagerBean.gravar}"/>
		<p:commandButton id="btnSair" 
							value="Sair" 
							styleClass="ui-priority-primary"
							actionListener="#{curvaAbcManagerBean.sair}"/>
		
		<div>
		<BR />
		</div>
		
		<p:panelGrid columns="2" columnClasses="colunaEsquerda, colunaDireita" style="width:100%; border:none;" >
			<h:outputLabel for="inputPercentualCurvaA" value="Percentual Curva A: " />
			<p:inputText id="inputPercentualCurvaA"
					maxlength="14"
					minValue="0" 
					decimalSeparator="." 
					thousandSeparator="" 
					decimalPlaces="6"
					value="#{curvaAbcManagerBean.clienteAbcVo.percentualCurvaA}"/>
					
			<h:outputLabel for="inputMargemPercentualCurvaA" value="Margem Percentual Curva A: " />
			<p:inputText id="inputMargemPercentualCurvaA"
					maxlength="14"
					minValue="0" 
					decimalSeparator="." 
					thousandSeparator="" 
					decimalPlaces="6"
					value="#{curvaAbcManagerBean.clienteAbcVo.margemErroCurvaA}"/>
			
			<h:outputLabel for="inputPercentualCurvaB" value="Percentual Curva B: " />
			<p:inputText id="inputPercentualCurvaB"
					maxlength="14"
					minValue="0" 
					decimalSeparator="." 
					thousandSeparator="" 
					decimalPlaces="6"
					value="#{curvaAbcManagerBean.clienteAbcVo.percentualCurvaB}"/>
					
			<h:outputLabel for="inputMargemPercentualCurvaB" value="Margem Percentual Curva B: " />
			<p:inputText id="inputMargemPercentualCurvaB"
					maxlength="14"
					minValue="0" 
					decimalSeparator="." 
					thousandSeparator="" 
					decimalPlaces="6"
					value="#{curvaAbcManagerBean.clienteAbcVo.margemErroCurvaB}"/>
					
			<h:outputLabel for="inputPercentualCurvaC" value="Percentual Curva C: " />
			<p:inputText id="inputPercentualCurvaC"
					maxlength="14"
					minValue="0" 
					decimalSeparator="." 
					thousandSeparator="" 
					decimalPlaces="6"
					value="#{curvaAbcManagerBean.clienteAbcVo.percentualCurvaC}"/>
					
			<h:outputLabel for="inputMargemPercentualCurvaC" value="Margem Percentual Curva C: " />
			<p:inputText id="inputMargemPercentualCurvaC"
					maxlength="14"
					minValue="0" 
					decimalSeparator="." 
					thousandSeparator="" 
					decimalPlaces="6"
					value="#{curvaAbcManagerBean.clienteAbcVo.margemErroCurvaC}"/>
		</p:panelGrid>
	</p:panel>
</div>
</ui:define>
<ui:define name="modal">

</ui:define>

</ui:composition>
</html>